package dev.alm.cqtakeoutservice.service;

import dev.alm.cqtakeoutservice.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {

    String login(User user) throws Exception;

    User getUserByUsername(String username);

    User add(User user) throws Exception;

    List<User> list();

    User getUserByUsernameAndEmail(String username, String email);

    Boolean removeListCache();

    Boolean removeUserCache();

    Boolean removeByUsername();
}
